<?php

class m_wx_game extends spModel{  
	var $table = "wx_game";
	var $pk = "id";
	
	function getMoney($openid){
		$da = $this->find(array('uid'=>$openid),null,'money');
		if(!empty($da)){
			return $da['money'];
		}
		return 0.00;
	}
}

?>